import React, { Component } from 'react'

const DtailContent = [
    {id:'01',content:'你好!中国'},
    {id:'02',content:'大决战'},
    {id:'03',content:'致敬先烈'},
]

export default class Detail extends Component {

    render() {
        const { id, title } = this.props.match.params;
        const findResult = DtailContent.find(content=>{
            return content.id === id;
        })
        return (
            <ul>
                <li>id:{id}</li>
                <li>title:{title}</li>
                <li>content:{ findResult.content }</li>
            </ul>
        )
    }
}
